# !/bin/sh

# 镜像参数
docker_repostory=registry.cn-shenzhen.aliyuncs.com
docker_registry_name=alinesno-cloud-incubator
project_artifactid=alinesno-cloud-initializr-admin-ui
project_version=2.1.2-RC

# 构建镜像
docker build -t ${docker_repostory}/${docker_registry_name}/${project_artifactid}:${project_version} .

REGISTRY_USERNAME= your_username 
REGISTRY_PASSWORD= your_password
docker login registry.cn-shenzhen.aliyuncs.com -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD

# 发布镜像
docker push ${docker_repostory}/${docker_registry_name}/${project_artifactid}:${project_version}
